package com.example.springcloud.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springcloud.common.entity.Dept;
import com.example.springcloud.entity.User;
import com.example.springcloud.mapper.UserMapper;
import com.example.springcloud.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 莫磊
 * @date 2025/8/20
 * @description
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Override
    public int addUser(User user) {
        return this.baseMapper.addUser(user);
    }

    @Override
    public List<User> findByNameLike(String name) {
        return this.baseMapper.findByNameLike(name);
    }

}
